STEP 1: We started this program for you! Use the example to help make a variable to store the rectangle's height.

  • In LOGIC, click on .
  • Drag in Integer Variable on the line directly below the variable rectangle_width.
  • Change the variable name to rectangle_height.
  • Change the value to 4.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)